package com.payment.system.domain;

public class Ranking implements Comparable<Ranking> {
	private String merchantName;
	private String phone;
	private Integer count;//人数
	private String merchantId;
	
	
	public String getMerchantName() {
		return merchantName;
	}


	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public Integer getCount() {
		return count;
	}


	public void setCount(Integer count) {
		this.count = count;
	}


	public String getMerchantId() {
		return merchantId;
	}


	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}


	@Override
	public int compareTo(Ranking o) {
		// TODO Auto-generated method stub
		return o.getCount()-this.count;
	}

}
